package ${servicePackage};

import javax.servlet.http.HttpServletRequest;

import com.spa.common.api.vo.Result;
import ${entityPackage}.${entity};

/**
 * 描述: ${table.comment}
 * author: ${author}
 * date: ${date}
 */
public interface ${entity}Service {

    /**
	 * 分页列表查询
	 *
	 * @param ${entity?uncap_first}
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	Result<Object> queryPageList(HttpServletRequest req, Integer pageNo, Integer pageSize);
	
    /**
	 * 添加
	 *
	 * @param ${entity?uncap_first}
	 * @return
	 */
	Result<Object> insert(${entity} ${entity?uncap_first});
	
	/**
	 * 编辑
	 *
	 * @param ${entity?uncap_first}
	 * @return
	 */
	Result<Object> saveById(${entity} ${entity?uncap_first});
	
	/**
	 * 通过id删除
	 *
	 * @param id
	 * @return
	 */
	Result<Object> deleteById(int id);
	
	/**
	 * 通过id查询
	 *
	 * @param id
	 * @return
	 */
	Result<Object> selectById(int id);
}